<?php
class log{
		static public function write($error,$type=3,$toFile=''){
			$dir = PATH_ROOT.'/temp/log/';
			is_dir($dir) || mkdir($dir);
			$logFile =$dir.date("ymd").".php";
			error_log($error,$type,$logFile);
		}
	}
?>